import axios from "../../axios.js";

export default {

  //获取签单，结账
  GETALLLIST(data) {
    return axios({
      url: '/query/list',
      method: 'post',
      data
    })
  },
  //获取客户
  GETALLCUSLIST(data) {
    return axios({
      url: '/crm/departmentCustomerList',
      method: 'post',
      data
    })
  },
  //  模板下载
  tempDownloadApi(data) {
    return axios({
      url: '/crm/TempDownload',
      method: 'get',
      params: data
    })
  },
  //  模板失败下载
  tempDownloadApi2(data) {
    return axios({
      url: '/crm/TempForTelDownload',
      method: 'get',
      params: data
    })
  },
  //  文件上传
  uploadApi(data) {
    return axios({
      url: '/crm/customerUpload',
      method: 'post',
      data
    })
  },
  // 获取推信息部列表
  getReturnInfo_Api(data) {
    return axios({
      url: '/crm/returnBack/select',
      method: 'post',
      data
    })
  },
  // 收取
  collectReturnInfo_Api(data) {
    return axios({
      url: '/crm/returnBack/collect',
      method: 'get',
      params:data
    })
  },
  // 退回
  returnReturnInfo_Api(data) {
    return axios({
      url: '/crm/returnBack/rollback',
      method: 'get',
      params:data
    })
  },
  // 分配重复数据
  disRepeat_Api(data){
    return axios({
      url: '/crm/secondaryDistribution',
      method: 'post',
      data
    })
  },
  /**===============yangbao新接口================= */
  //结账单查询列表
  GETALLLIST2(data) {
    return axios({
      url: '/query/checkList',
      method: 'post',
      data
    })
  },
  //退信息部档案
  getReturnArchives_Api(data) {
    return axios({
      url: '/crm/returnBack/selectOne',
      method: 'post',
      data
    })
  },
};
